package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksSpecificationDO;
import com.starlink.model.request.MallBooksSpecificationRequest;
import com.starlink.model.request.save.MallBooksSpecificationSaveRequest;
import com.starlink.model.vo.MallBooksSpecificationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksSpecificationDtoMapper {

    MallBooksSpecificationDtoMapper INSTANCE = Mappers.getMapper(MallBooksSpecificationDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksSpecificationDO
    * @return
    */
    MallBooksSpecificationVO do2VO(MallBooksSpecificationDO mallBooksSpecificationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksSpecificationDO request2DO(MallBooksSpecificationRequest request);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksSpecificationDO request2DO(MallBooksSpecificationSaveRequest request);
}
